﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for BaseUserControl
/// </summary>
namespace WebTeamplate
{
    public class BaseUserControl : System.Web.UI.UserControl
    {
        public BaseUserControl()
        {
            //
            // TODO: Add constructor logic here
            //
        }
      
        public string FullPageUrl
        {
            get
            {
                return this.Request.Url.AbsoluteUri;
            }
        }
        public BasePage BasePage
        {
            get { return Page as BasePage; }
        }
        public Guid UserloginId
        {
            get
            {
                return BasePage.UserloginId;
            }
        }
        public string LanguageID
        {
            get
            {
                try
                {
                    return BasePage.LanguageID;
                }
                catch
                {
                    return "vi-VN";
                }
            }
        }

        public string ApplicationName
        {
            get
            {
                return BasePage.ApplicationName;
            }
        }
        public string BaseUrl
        {
            get
            {
                return BasePage.BaseUrl;
            }
        }
       
    }
}